## Script (Python) "tree_diagram"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##title=Generate concept tree diagram
##parameters=top=None,doubleSpacing=False


for term in context.listAllTerms():
    if not term.has_key('term'): continue
    term = term['term']
    if term.getDefinition().strip():
        print '%s: %s' % (term.Title(), term.getDefinition())
        print

return printed